package com.yl.common.enums;

import lombok.Getter;

/**
 * 系统错误编码
 * 请对应数据库表error_code
 */
@Getter
public enum ErrorCode {
    ERROR_10000(10000,"解析用户信息失败"),
    ERROR_10001(10001,"解析用户信息失败"),
    ERROR_10002(10002,"解析用户信息失败"),

    ERROR_11000(11000,"验证签名失败"),

    ERROR_12000(12000,"没有此资产"),

    ERROR_13000(13000,"json解析异常，请求参数不满足要求"),
    ERROR_13001(13001,"灯开关参数异常"),
    ERROR_13002(13002,"窗帘开合参数异常"),

    ERROR_14000(14000,"数据异常")

    ;


    /**
     * 错误编码
     */
    private final Integer code;
    /**
     * 错误名称
     */
    private final String describe;

    ErrorCode(Integer code, String describe){
        this.code = code;
        this.describe = describe;
    }
}
